import http from '../http'

const api = '/manage/account'

export function login(data) {
  return http.post(api + '/login', data, {
    params: {
      permission: process.env.VUE_APP_PERMISSION
    }
  })
}

export function logout() {
  return http.get(api + '/logout')
}

export function user() {
  return http.get(api)
}

export function checkout() {
  return http.get(api + '/checkout')
}